local Shape = Shape
local M_PI = math.pi

local s = Image.new(stage:getSize())
	:setLineWidth(6)
	:rectangle(12, 12, 232, 70)
	:newSubPath()
	:arc(64, 64, 40, 0, 2*M_PI)
	:newSubPath()
	:arcNegative(192, 64, 40, 0, -2*M_PI)
	:setFillRule("even-odd")
	:setSourceColor(0, 0.7, 0)
	:fillPreserve()
	:setSourceColor(0, 0, 0)
	:stroke()

local l = Image.new(stage:getSize())
	:rectangle(12, 12, 232, 70)
	:newSubPath()
	:arc(64, 64, 40, 0, 2*M_PI)
	:newSubPath()
	:arcNegative(192, 64, 40, 0, -2*M_PI)
	:setFillRule("winding")
	:setSourceColor(0, 0, 0.9)
	:fillPreserve()
	:setSourceColor(0, 0, 0)
	:stroke()

stage:addChild(DisplayImage.new(s))
stage:addChild(DisplayImage.new(l):setPosition(0, 128))
